home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-02 / fgl110c.zip / CC-01.C < prev    next >
Text File  |  1992-01-31  |  458b  |  31 lines

  1. #include <fastgraf.h>
  2. #include <stdio.h>
  3.  
  4. void main(void);
  5.  
  6. #define ESC 27
  7.  
  8. int status1, status2;
  9.  
  10. void main()
  11. {
  12.    unsigned char key, aux;
  13.  
  14.    int1C(1);
  15.  
  16.    status1 = 0;
  17.    status2 = 0;
  18.  
  19.    do {
  20.       printf("\n");
  21.       printf("Joystick 1 status: %d\n",status1);
  22.       printf("Joystick 2 status: %d\n",status2);
  23.       status1 = 0;
  24.       status2 = 0;
  25.       fg_getkey(&key,&aux);
  26.       }
  27.    while (key != ESC);
  28.  
  29.    int1C(0);
  30. }
  31.